package com.filmbooks.contract.detail;

import com.filmbooks.base.BaseWebLoadPresenter;
import com.filmbooks.detail.BaseWebViewLoadContract;
import com.filmbooks.model.home.bean.home.ZhihuDailyDetailBean;

import io.reactivex.Observable;

/**
 * Created by heshuxiang on 2018/3/7.
 * 描述：
 * 公司：盟将威
 * 作者：heshuxiang
 * 日期：2018/3/7.
 * 工程：FilmBooks
 * 包：com.filmbooks.contract.detail
 */

public interface ZhihuDetailContract {
    abstract class ZhihuDetailPresenter extends BaseWebLoadPresenter<IZhihuDetailModel, IZhihuDetailView> {
        /**
         * 加载日报详情
         */
        public abstract void loadDailyDetail(String id);
    }


    interface IZhihuDetailModel extends BaseWebViewLoadContract.IBaseWebViewLloadModel {
        /**
         * 获取日报详情
         *
         * @param id 日报id
         * @return Observable
         */
        Observable<ZhihuDailyDetailBean> getDailyDetail(String id);
    }

    interface IZhihuDetailView extends BaseWebViewLoadContract.IBaseWebViewLoadView {
        /**
         * 显示日报详细内容
         *
         * @param bean ZhihuDailyDetailBean
         */
        void showDailyDetail(ZhihuDailyDetailBean bean);
    }
}
